<!DOCTYPE html>

<html>

<head>
    <meta charset="utf-8">
    <title>标签数据表格</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</head>

<body>

    <div class="layui-card layadmin-header">
        <div class="layui-breadcrumb" lay-filter="breadcrumb">
            <a lay-href="">主页</a>
            <a><cite>组件</cite></a>
            <a><cite>数据表格</cite></a>
            <a><cite>开启头部工具栏</cite></a>
        </div>
    </div>


    <div class="layui-fluid">

        <div class="layui-row layui-col-space15">

            <div class="layui-col-md12">
                <div class="layui-card">

                    <div class="layui-card-body">

                        <button class="layui-btn" class="layui-btn layui-btn-primary layui-btn-xs" id="adds">添加管理员</button>

                        <div class="layui-tab" ng-app="app" ng-controller="listContextController">
                            <ul class="layui-tab-title">
                                <li class="layui-this">学员标签</li>
                                <li>学员体侧标签</li>
                                <li>学员技能测试标签</li>
                                <li>非学员标签</li>
                                <li>非学员体侧标签</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <table class="layui-table">
                                        <thead>
                                            <tr class="layui-bg-orange">
                                                <th>昵称</th>
                                                <th>加入时间</th>
                                                <th>人数</th>
                                            </tr>
                                        </thead>
                                        <tbody>

                                            <tr ng-repeat='studentType in studentTypelist track by $index'>
                                                <td>{{studentType.names}}</td>
                                                <td>{{studentType.createTime}}</td>
                                                <td>{{studentType.total}}</td>
                                                <!--  <td><button type="button" class="layui-btn layui-btn-sm layui-btn-danger">删除</button></td> -->
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <!--学员体侧标签sart-->
                                <div class="layui-tab-item">
                                    <table class="layui-table">

                                        <thead>
                                            <tr class="layui-bg-blue">
                                                <th>昵称</th>
                                                <th>加入时间</th>
                                                <th>已经数据</th>
                                            </tr>
                                        </thead>
                                        <tbody>

                                            <tr ng-repeat='constionParent in ConstionParentlist track by $index'>
                                                <td>{{constionParent.content}}</td>
                                                <td>{{constionParent.createTime}}</td>
                                                <td>{{constionParent.total}}</td>
                                                <!--  <td><button type="button" class="layui-btn layui-btn-sm layui-btn-danger">删除</button></td> -->
                                            </tr>
                                        </tbody>
                                    </table>

                                </div>
                                <!--学员体侧标签end-->
                                <!--学员技能测试标签-->
                                <div class="layui-tab-item">
                                    <table class="layui-table">
                                        <colgroup>
                                            <col width="150">
                                            <col width="200">
                                            <col>
                                        </colgroup>
                                        <thead>
                                            <tr class="layui-bg-green">
                                                <th>等级</th>
                                                <th>部分名称</th>
                                                <th>加入时间</th>
                                                <th>已经测数据</th>
                                            </tr>
                                        </thead>
                                        <tbody>

                                            <tr ng-repeat='leavea in leavealist track by $index'>
                                                <td>{{leavea.leid}}</td>
                                                <td>{{leavea.itemContextOne}}</td>
                                                <td>{{leavea.createTime}}</td>
                                                <td>{{leavea.total}}</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <!--学员技能测试标签end-->

                                <div class="layui-tab-item">
                                    <table class="layui-table">

                                        <thead>
                                            <tr class="layui-bg-cyan">
                                                <th>名称</th>
                                                <th>加入时间</th>
                                                <th>已经测数据</th>
                                            </tr>
                                        </thead>
                                        <tbody>

                                            <tr ng-repeat='noStudent in noStudentTypelist track by $index'>
                                                <td>{{noStudent.names}}</td>
                                                <td>{{noStudent.createTime}}</td>
                                                <td>{{noStudent.total}}</td>
                                            </tr>
                                        </tbody>
                                    </table>

                                </div>
                                <div class="layui-tab-item">
                                    <table class="layui-table">

                                        <thead>
                                            <tr class="layui-bg-red">
                                                <th>昵称</th>
                                                <th>加入时间</th>
                                                <th>已存在数据</th>
                                            </tr>
                                        </thead>
                                        <tbody>

                                            <tr ng-repeat='NoConstionParent in NoConstionParentList track by $index'>
                                                <td>{{NoConstionParent.content}}</td>
                                                <td>{{NoConstionParent.createTime}}</td>
                                                <td>{{NoConstionParent.total}}</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>





                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/jquery/jquery-1.11.1.min.js"></script>
    <script src="../../../layuiadmin/url.js"></script>
    <script src="../../../layuiadmin/jquery/angular.js"></script>
    <script>
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'table', 'form'], function() {
            var admin = layui.admin,
                table = layui.table;
            form = layui.form;

        });
    </script>
    <script>
        var app = angular.module('app', []);
        app.controller('listContextController', ['$scope', '$http', function($scope, $http) {
            $scope.selectStudentType = function() {
                $http({
                    method: 'POST',
                    url: applicationUrl + 'studentType/api/list',
                    headers: {
                        "Content-Type": 'application/x-www-form-urlencoded'
                    },
                }).success(function(result) {
                    $scope.studentTypelist = result;
                }).error(function(data, status) {
                    console.log(" ");
                });
            };
            //加载用户信息
            $scope.selectStudentType();
            $scope.selectConstionParentList = function() {
                $http({
                    method: 'POST',
                    url: applicationUrl + 'constionparent/api/list',
                    headers: {
                        "Content-Type": 'application/x-www-form-urlencoded'
                    },
                }).success(function(result) {
                    $scope.ConstionParentlist = result;
                }).error(function(data, status) {
                    console.log(" ");
                });
            };
            $scope.selectConstionParentList();

            $scope.selectLeveaList = function() {
                $http({
                    method: 'POST',
                    url: applicationUrl + 'leavea/api/list',
                    headers: {
                        "Content-Type": 'application/x-www-form-urlencoded'
                    },
                }).success(function(result) {
                    $scope.leavealist = result;
                }).error(function(data, status) {
                    console.log(" ");
                });
            };
            $scope.selectLeveaList();

            $scope.selectNoStudentTypeList = function() {
                $http({
                    method: 'POST',
                    url: applicationUrl + 'no-studentType/api/list',
                    headers: {
                        "Content-Type": 'application/x-www-form-urlencoded'
                    },
                }).success(function(result) {
                    $scope.noStudentTypelist = result;
                }).error(function(data, status) {
                    console.log(" ");
                });
            };
            $scope.selectNoStudentTypeList();
            $scope.selectNoConstionParentList = function() {
                $http({
                    method: 'POST',
                    url: applicationUrl + 'no-constionparent/api/list',
                    headers: {
                        "Content-Type": 'application/x-www-form-urlencoded'
                    },
                }).success(function(result) {
                    $scope.NoConstionParentList = result;
                }).error(function(data, status) {
                    console.log(" ");
                });
            };
            $scope.selectNoConstionParentList();
        }]);
    </script>

</body>

</html>